import Layout from '@/pages/public/layout' // 公共部分

const topic = [{
  path: '/exam/question/topic',
  component: Layout,
  children: [{
      path: 'list',
      component: () => import('@/pages/exam/question/topic/index.vue'),
      meta: {
        title: '题目管理',
        permission: 'exam.question.topic.list'
      }
    },
    {
      path: 'create',
      component: () => import('@/pages/exam/question/topic/create.vue'),
      meta: {
        title: '新建题目',
        permission: 'exam.question.topic.create'
      }
    },
    {
      path: ':id/edit',
      component: () => import('@/pages/exam/question/topic/edit.vue'),
      meta: {
        title: '编辑题目',
        permission: 'exam.question.topic.edit'
      }
    },
    {
      path: ':id/details',
      component: () => import('@/pages/exam/question/topic/details.vue'),
      meta: {
        title: '题目详情',
        permission: 'exam.question.topic.list'
      }
    },
    {
      path: ':id/paper/list',
      component: () => import('@/pages/exam/question/topic/link_paper.vue'),
      meta: {
        title: '引用试卷详情',
        permission: 'exam.question.topic.list'
      }
    },
    {
      path: 'reading',
      component: () => import('@/pages/exam/question/topic/reading.vue'),
      meta: {
        title: '阅卷'
      }
    }
  ]
}]

export default topic
